package zero.mybatisplus.dynamictable.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import zero.mybatisplus.dynamictable.param.DynamicTableParam;

import java.util.List;

public interface DynamicTableMapper<T> extends BaseMapper<T> {
    /**
     * 批量插入(优化)
     *
     * @param entityList        实体列表
     * @param dynamicTableParam 表替换对象
     * @return 是否成功
     */
    boolean insertBatchSomeColumn(@Param("list") List<T> entityList, DynamicTableParam dynamicTableParam);
}
